﻿@model IEnumerable<Unijovem.UI.Models.ForumModel>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Manter")
</p>
<table>
    <tr>
        <th>
            Tema
        </th>
        <th>
            Assunto
        </th>
        <th>
            TextoBase
        </th>
        <th>
            DataInicio
        </th>
        <th>
            DataFinal
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Tema.Descricao)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Assunto)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TextoBase)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DataInicio)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DataFinal)
        </td>
        <td>
            @Html.ActionLink("Edit", "Manter", new { id=item.Id }) |
            @Html.ActionLink("Details", "Detalhes", new { id=item.Id }) |
        </td>
    </tr>
}

</table>
